﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace AbpToDomain.EntityInfo
{
    public class TaskOrder : Entity
    {
        [Key]
        public Guid Taskorder_Id { get; set; }
        public DateTime CreateTime { get; set; }
        public string TaskOrderCode { get; set; }
        public bool IsSend { get; set; }
        public string? Info { get; set; }

        [ForeignKey("Origination")]
        public Guid Origination_Id { get; set; }
        public virtual Position Origination { get; set; }
        [ForeignKey("Target")]
        public Guid Target_Id { get; set; }
        public virtual Position Target { get; set; }


        public override object?[] GetKeys()
        {
            return new object[] { Taskorder_Id };
        }
    }


}
